package com.xiaojiezhu.test;

import com.xiaojiezhu.test.component.Person;
import com.xiaojiezhu.test.component.Student;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main1 {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Person.class);
		Person bean = context.getBean(Student.class);
		System.out.println(bean);

	}
}
